/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.property;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购属性Entity
 * @author 罗天文
 * @version 2018-05-15
 */
public class HkShopProperty extends DataEntity<HkShopProperty> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String ismultiple;		// 是否多选
	private String rank;		// 序号
	private List<HkShopPropertyValue> hkShopPropertyValueList = Lists.newArrayList();		// 子表列表
	
	public HkShopProperty() {
		super();
	}

	public HkShopProperty(String id){
		super(id);
	}

	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="是否多选长度必须介于 0 和 1 之间")
	public String getIsmultiple() {
		return ismultiple;
	}

	public void setIsmultiple(String ismultiple) {
		this.ismultiple = ismultiple;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	public List<HkShopPropertyValue> getHkShopPropertyValueList() {
		return hkShopPropertyValueList;
	}

	public void setHkShopPropertyValueList(List<HkShopPropertyValue> hkShopPropertyValueList) {
		this.hkShopPropertyValueList = hkShopPropertyValueList;
	}
}